
// 限制仓库数据类型
export interface Store {
  counter1: Counter1,
  counter2: Counter2,
  home: Home,
  session:Session

}

export interface Counter1 {
  number: number
}

export interface Counter2 {
  number: number
}
interface Lesson  {
  id: number,
  title:string
  video:string,
  poster:string,
  url: string
  price: string,
  category:string
}
export interface Home {
  category: string,
  sliders: string[],
  lessons:{
    hasMore: boolean,
    list:Lesson[],
    offset:number,
    limit:number,
    loading:false, //加载动画

  }
}

export interface Session{
  user:{username:string,password:string,id:number},
  success:string,
  error:string

}